package valeria;

public class J15Ch05Printers {

}
class Printer{

	private String model;
	private String manufacturer;
	private String kindInterface;
	private int printcnt;
	private int restpaper;
	public String getModel() {
		return model;
	}
	public void setModel(String model) {
		this.model = model;
	}
	public String getManufacturer() {
		return manufacturer;
	}
	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}
	public String getKindInterface() {
		return kindInterface;
	}
	public void setKindInterface(String kindInterface) {
		this.kindInterface = kindInterface;
	}
	public int getPrintcnt() {
		return printcnt;
	}
	public void setPrintcnt(int printcnt) {
		this.printcnt = printcnt;
	}
	public int getRestpaper() {
		return restpaper;
	}
	public void setRestpaper(int restpaper) {
		this.restpaper = restpaper;
	}
	public void print(){
	
		printcnt=printcnt+1;
		restpaper=restpaper-1;
	}
@Override
	public String toString() {
	String result="";
	result+=getModel()+getRestpaper()+"\n"+getPrintcnt();
	return result;
	}	

}

class InkjetPrinter extends Printer{
	private double inkamt;
	
	
}

class LaserPriner extends Printer{
	private double toneramt;
	
}